//
//  CycleDelayViewController.m
//  oc_demo
//
//  Created by haigui on 2021/10/19.
//

#import "CycleDelayViewController.h"
#import <YJProgressHUD/YJProgressHUD.h>
@interface CycleDelayViewController ()

@end

@implementation CycleDelayViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
}
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
//    for (int i = 0; i<1; i++) {
//        dispatch_async(dispatch_queue_create("", DISPATCH_QUEUE_CONCURRENT), ^{
//            dispatch_async(dispatch_get_main_queue(), ^{
                [YJProgressHUD showSuccess:@"1111" inview:self.view];
                NSLog(@"ewewewe");
//            });
//        });
//        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(10.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
//            dispatch_async(dispatch_get_main_queue(), ^{
//                [YJProgressHUD showSuccess:@"2222" inview:self.view];
//            });
//        });
        [NSThread sleepForTimeInterval:1];
//    }
    [YJProgressHUD showSuccess:@"来来来" inview:self.view];
    NSLog(@"hahahah");
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
